package com.goldstone.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.springside.modules.orm.Page;
import org.springside.modules.orm.PropertyFilter;

import com.goldstone.dao.PackDao;
import com.goldstone.entity.Pack;

@Component
@Transactional
public class PackService {
	@Autowired
	private PackDao dao;
	
	public void save(Pack pack) {
		dao.save(pack);
	}
	@Transactional(readOnly = true)
	public Pack get(String id) {
		return dao.get(id);
	}
	@Transactional(readOnly = true)
	public void find(Page<Pack> page, List<PropertyFilter> filters) {
		dao.findPage(page, filters);
	}
	public void delete(String id) {
		dao.delete(id);
	}
	
}
